#include "Shm.hpp"
#include <unistd.h>

int main()
{
    string pathname = ".";
    int projid = 0x66;
    Shm shm(pathname, projid);
    shm.Creat();
    shm.Attach();
    // 写入数据
    char *arr = (char *)shm.Start();
    for (int i = 'a'; i <= 'z'; i++)
    {
        arr[i - 'a'] = i;
        sleep(1);
    }

    shm.Destroy();
}